package com.dji.custom.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 飞行记录拓展（Poilt上云）对象 expand_wayline_point
 *
 * @author ruoyi
 * @date 2023-11-02
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("expand_wayline_point")
public class ExpandWaylinePointEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private String id;

    /** 任务id */
    @TableField(value = "job_id")
    private String jobId;

    /** 设备sn码 */
    @TableField(value = "device_sn")
    private String deviceSn;

    /** 经度 */
    @TableField(value = "longitude")
    private Double longitude;

    /** 纬度 */
    @TableField(value = "latitude")
    private Double latitude;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;

    public ExpandWaylinePointEntity(String deviceSn, String jobId, Double longitude, Double latitude){
        this.jobId = jobId;
        this.deviceSn = deviceSn;
        this.longitude = longitude;
        this.latitude = latitude;
    }

}
